.class final Lcom/trademob/tracking/TMLocationData;
.super Ljava/lang/Object;
.source "TMLocationData.java"


# instance fields
.field public final myLatitude:D

.field public final myLongitude:D


# direct methods
.method public constructor <init>(DD)V
    .locals 0
    .parameter "aLongitude"
    .parameter "aLatitude"

    .prologue
    .line 14
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 16
    iput-wide p1, p0, Lcom/trademob/tracking/TMLocationData;->myLongitude:D

    .line 17
    iput-wide p3, p0, Lcom/trademob/tracking/TMLocationData;->myLatitude:D

    .line 18
    return-void
.end method


# virtual methods
.method public final equals(Ljava/lang/Object;)Z
    .locals 5
    .parameter "obj"

    .prologue
    .line 24
    instance-of v1, p1, Lcom/trademob/tracking/TMLocationData;

    if-nez v1, :cond_0

    invoke-super {p0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    .line 26
    :goto_0
    return v1

    :cond_0
    move-object v0, p1

    .line 25
    check-cast v0, Lcom/trademob/tracking/TMLocationData;

    .line 26
    .local v0, that:Lcom/trademob/tracking/TMLocationData;
    iget-wide v1, p0, Lcom/trademob/tracking/TMLocationData;->myLongitude:D

    iget-wide v3, v0, Lcom/trademob/tracking/TMLocationData;->myLongitude:D

    cmpl-double v1, v1, v3

    if-nez v1, :cond_1

    iget-wide v1, p0, Lcom/trademob/tracking/TMLocationData;->myLatitude:D

    iget-wide v3, v0, Lcom/trademob/tracking/TMLocationData;->myLatitude:D

    cmpl-double v1, v1, v3

    if-nez v1, :cond_1

    const/4 v1, 0x1

    goto :goto_0

    :cond_1
    const/4 v1, 0x0

    goto :goto_0
.end method

.method public hashCode()I
    .locals 4

    .prologue
    .line 33
    iget-wide v0, p0, Lcom/trademob/tracking/TMLocationData;->myLongitude:D

    iget-wide v2, p0, Lcom/trademob/tracking/TMLocationData;->myLatitude:D

    add-double/2addr v0, v2

    invoke-static {v0, v1}, Ljava/lang/Double;->doubleToLongBits(D)J

    move-result-wide v0

    long-to-int v0, v0

    return v0
.end method

.method public final toString()Ljava/lang/String;
    .locals 3

    .prologue
    .line 40
    new-instance v0, Ljava/lang/StringBuilder;

    iget-wide v1, p0, Lcom/trademob/tracking/TMLocationData;->myLongitude:D

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-wide v1, p0, Lcom/trademob/tracking/TMLocationData;->myLatitude:D

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
